import request from '@/utils/request'

// 查询专科院校信息列表
export function listVocationalCollege(query) {
  return request({
    url: '/baoming/vocationalCollege/list',
    method: 'get',
    params: query
  })
}

// 查询专科院校信息详细
export function getVocationalCollege(id) {
  return request({
    url: '/baoming/vocationalCollege/' + id,
    method: 'get'
  })
}

// 新增专科院校信息
export function addVocationalCollege(data) {
  return request({
    url: '/baoming/vocationalCollege',
    method: 'post',
    data: data
  })
}

// 修改专科院校信息
export function updateVocationalCollege(data) {
  return request({
    url: '/baoming/vocationalCollege',
    method: 'put',
    data: data
  })
}

// 删除专科院校信息
export function delVocationalCollege(id) {
  return request({
    url: '/baoming/vocationalCollege/' + id,
    method: 'delete'
  })
}
